package com.bwie.config;

import org.apache.kafka.clients.admin.NewTopic;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * description:
 *
 * @Author youhongwei
 * @Create 2025/6/17 17:39
 * @Version 1.0
 */
@Component
public class KafkaConfig {

    public static final String KAFKA_STRING = "kafka_string";

    @Bean
    public NewTopic newTipc(){
        return new NewTopic(KAFKA_STRING,1,(short) 1);
    }

}
